//
//  PokeMasterView.swift
//  ToDo
//
//  Created by yanhangpu on 2021/7/13.
//

import SwiftUI

struct PokeMasterView: View {
    
    let pokeMasterData: [PokeMasterItem] = PokeMasterModel.loadPokeMasterData()

    var body: some View {
        ScrollView {
            ForEach(pokeMasterData, id: \.self) { item in
                PokemonInfoRow(item: item)
            }
        }
    }
}

struct PokeMasterView_Previews: PreviewProvider {
    static var previews: some View {
        PokeMasterView()
    }
}
